package test;

import java.util.List;

import model.TNjob;

import org.junit.Test;
import persistent.imple.NjobDAOImpl;

public class testNjobDAOImpl {

	NjobDAOImpl dao = new NjobDAOImpl();

	@Test//OK
	public void testAddNjob() {
		TNjob job = new TNjob();
		job.setName("");
		job.setArea("");
		job.setSalary(3000.0);
		job.setStuid("156005");
		dao.addNjob(job);
	}

	@Test//OK
	public void testGetTNjoblist() {
		List<TNjob> list = dao.getTNjoblist("156001");
		System.out.print(list.size());
		
	}

}
